using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using System.Xml;
using ToodleOutlook;
using Outlook=Microsoft.Office.Interop.Outlook;

namespace ToodleDoAPI
{
    class Program
    {
        static void Main(string[] args)
        {
            ToodleDoAPIWrapper tdAPI = new ToodleDoAPIWrapper();
            GenericTaskItem[] theTasks = tdAPI.getTasks();
            for (int i = 0; i < theTasks.Length;i++ )
            {
                Console.WriteLine(theTasks[i].Subject);
            }

            GenericTaskItem theItem = new GenericTaskItem();
            theItem.Subject = "My Test Task";
            theItem.Importance = Outlook.OlImportance.olImportanceNormal;
            theItem.DueDate = DateTime.Now;
            theItem.Body = "Bodacious body";
            Console.WriteLine(tdAPI.addTask(theItem));

        }

       
    }
}
